package com.xuecheng.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.order.model.dto.OrdersDTO;
import com.xuecheng.api.order.model.pay.PayCodeUrlResult;
import com.xuecheng.order.entity.Orders;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-23
 */
public interface OrdersService extends IService<Orders> {


    /**
     * 创建订单-学员选课
     * @param coursePubId
     * @param username
     * @return
     */
    OrdersDTO createOrder(Long coursePubId,String username);


    /**
     * 创建订单支付数据
     * @param orderNo
     * @param username
     * @return
     */
    PayCodeUrlResult createPayment(String orderNo,String username);

}
